package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class HomeController {
    @GetMapping("")
    public Map<String, String> index(String a) {
       return Map.of("message", "Hello World");
    }
    @GetMapping("ping")
    public Map<String, String> ping() {
        return Map.of("message", "pone");
    }
}
